home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2005 March / Macworld CD March 2005 - Marathon Trilogy.iso / Shareware World / Internet / iModz.app.sit / iModz.app / Contents / PrivateHeaders / meuControlador.h < prev   
Encoding:
Text File  |  2005-01-03  |  3.7 KB  |  105 lines

  1. /* meuControlador.h v100
  2.  
  3. Created, written and tested by Fernando Lucas
  4. January 2005
  5.  
  6. Copyright © 2003-2005 Fernando Lucas Santos
  7.  
  8. This file is part of iModz.
  9.  
  10. iModz is free software; you can redistribute it and/or modify
  11. it under the terms of the GNU General Public License as published by
  12. the Free Software Foundation; either version 2 of the License, or
  13. (at your option) any later version.
  14.  
  15. iModz is distributed in the hope that it will be useful,
  16. but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18. GNU General Public License for more details.
  19.  
  20. You should have received a copy of the GNU General Public License
  21. along with iModz; if not, write to the Free Software
  22. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  23.  
  24. */
  25. #import <Cocoa/Cocoa.h>
  26.  
  27. // INTERFACE INTERFACE BUILDER ITENS
  28. // Take a look at the NIB to understand the connections and names.
  29. @interface meuControlador : NSObject
  30. {
  31.     // Mostly options for the user
  32.     IBOutlet NSPopUpButton *escolhaProg;
  33.     IBOutlet NSMatrix *ordemMensagem;
  34.     IBOutlet NSTextField *mensagem;
  35.     IBOutlet NSTextField *segundos;
  36.     IBOutlet NSTextField *campoTransp;
  37.     IBOutlet NSTextField *prefixoMusica;
  38.     IBOutlet NSTextField *sufixoMusica;
  39.     IBOutlet NSTextField *prefixoSite;
  40.     IBOutlet NSTextField *sufixoSite;
  41.     
  42.     // tableView for messages list
  43.     IBOutlet NSTableView *listaMensagens;
  44.     
  45.     IBOutlet NSWindow *iModz; // main window
  46.     IBOutlet NSWindow *Opcoes; // preferences window
  47.     
  48.     IBOutlet NSButton *escolhaOcultar;
  49.     IBOutlet NSButton *botaoAtivar;
  50.     IBOutlet NSButton *escolhaObservar;
  51.     IBOutlet NSButton *escolhaMensagens;
  52.     IBOutlet NSButton *escolhaAtivar;
  53.     
  54.     IBOutlet NSSlider *escolhaAlpha;
  55.     IBOutlet NSSlider *segundosValor;
  56.     
  57.     IBOutlet NSMenuItem *enviarMensagemiChat; // Send iChat Message
  58.     
  59.     IBOutlet NSTextField *campoAdicionarMsg;
  60.     
  61.     NSMutableArray *records;
  62.     NSMutableDictionary *record;
  63. }
  64.  
  65. // Ações - Actions
  66. - (IBAction)retornar:(id)sender; // returns a value
  67. - (IBAction)retornarValor:(id)sender; // returns a value and set it on a object
  68. - (IBAction)observar:(id)sender; // Look for changes on the preferences panel
  69. - (IBAction)salvarPrefs:(id)sender; //saves the preferences into the user's default
  70. - (IBAction)enviarMensagem:(id)sender; //send message from iTunes to iChat
  71. - (IBAction)desativarOcultar:(id)sender; // switch for Activate on Start [on/off]
  72. - (IBAction)adicionarMensagem:(id)sender; // Add message to the messages list
  73. - (IBAction)removerMensagem:(id)sender; // Remove message to the messages list
  74.  
  75. - (IBAction)abrirManual:(id)sender; // Opens iModz HTML Help in Help Viewer.app
  76.  
  77. // Métodos - Methods
  78. - (void)ocultar;
  79. - (void)observarMethod; //Method to observe some changes on the preferences panel
  80. - (void)chamarScript; //calls the script which begins the communication between apps - fires the timer
  81. - (void)Uptime; // Calls UPTIME command from Unix Shell
  82. - (void)iniciarTempo; //initiates timer
  83. - (void)iTunes;
  84. - (void)iTunesB;
  85. - (void)iChat;
  86. - (void)Mail;
  87. - (void)verificarOrdemMensagem; //Verifies message order (iTunes)
  88. - (void)DataHora;
  89. - (void)metodoMensagem; // Verifies which kind of message (singular personal or message list) is selected
  90. - (void)Mensagem;
  91. - (void)Safari;
  92. - (void)rodarMensagens; // Switch messages
  93. - (void)iniciarCom;
  94. - (void)desativarOpcoes; //Deactivate Options
  95. - (void)limparStatus; //Cleans Status message after errors/give up
  96.  
  97. // Método para executar AppleScripts remotos
  98. // Method to execute remote AppleScripts
  99. - (void)executeAppleScript:(NSString *)filename;
  100.  
  101. //Method to check currently open apps
  102. - (BOOL)aplicativoEstaAberto:(NSString *)aplicativo;
  103.  
  104. @end
  105.